package com.example.com.daervideo.activitys.loginRegist;


import android.graphics.Paint;

import com.example.com.daervideo.R;
import com.example.com.daervideo.databinding.ActivityLoginBinding;
import com.example.com.daervideo.vm.LoginViewModel;
import com.example.com.daervideo.BR;

import me.goldze.mvvmhabit.base.BaseActivity;

/**
 * Created by i7-1 on 2018/11/21.
 */

public class LoginActivity extends BaseActivity<ActivityLoginBinding, LoginViewModel> {

    @Override
    public int initContentView() {
        return R.layout.activity_login;
    }

    @Override
    public int initVariableId() {
        return BR.viewModel;
    }

    @Override
    public LoginViewModel initViewModel() {
        return new LoginViewModel(this);
    }

    @Override
    public void initParam() {
        super.initParam();
        // getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);// 设置全屏
    }

    @Override
    public void initData() {
        super.initData();
        getBinding().protocol.getPaint().setFlags(Paint.UNDERLINE_TEXT_FLAG);
        getBinding().showCode.getPaint().setFlags(Paint.UNDERLINE_TEXT_FLAG);
        getBinding().forgetPassword.getPaint().setFlags(Paint.UNDERLINE_TEXT_FLAG);
        getBinding().showMima.getPaint().setFlags(Paint.UNDERLINE_TEXT_FLAG);

    }
}
